<%@page pageEncoding="UTF-8"%>
<!--footer-->
<div id="pf-ft">
    <div class="system-name">
        <i class="iconfont">&#xe6fe;</i>
        <span><spring:message code="app.name" />&nbsp;v1.0</span>
    </div>
    <div class="copyright-name">
        <span>CopyRight&nbsp;2017&nbsp;&nbsp;&nbsp;版权所有:公司名称</span>
        <i class="iconfont" >&#xe6ff;</i>
    </div>
</div>

</div>


<script type="text/javascript">

    var centerTabs= $('.easyui-tabs1').tabs({
        tabHeight: 44,
        onSelect:function(title,index){
            var currentTab = $('.easyui-tabs1').tabs("getSelected");
            //if(currentTab.find("iframe") && currentTab.find("iframe").size()){
            //currentTab.find("iframe").attr("src",currentTab.find("iframe").attr("src"));
            //}

            //左侧菜单联动
        }
    })

    $(window).resize(function(){
        $('.tabs-panels').height($("#pf-page").height()-46);
        $('.panel-body').height($("#pf-page").height()-76)
    }).resize();

    //tab 联动
    function addTab(node,obj) {
        var nodes=node.split("||");
        if(centerTabs.tabs('exists', nodes[0])){
            centerTabs.tabs('select',nodes[0]);
            var currentTab = $('.easyui-tabs1').tabs("getSelected");
            currentTab.find("iframe").attr("src",currentTab.find("iframe").attr("src"));
        }else{
            centerTabs.tabs('add',{
                title:nodes[0],
                closable:true,
                content:"<iframe class='page-iframe' src='<%=basePath %>"+nodes[1]+"' frameborder='no'   border='no' height='100%' width='100%' scrolling='auto'></iframe>"
            });
        }

        //样式
        $(".active").removeClass("active");
        $(obj).parent().addClass("active");
    }


    //语言切换
    function sLang(obj) {
        var langVar = $(obj).val();
        window.location.href="<%=basePath %>index?lang="+langVar;
    }

</script>
</body>
</html>
